home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3root.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_ROOT_H = 1;
- include("oops/r3oops.js")
- include("oops/r3typids.js")
-
-
- var R3CLID_ROOT = 0;
-
-
-
-
- // Description: Creates a new instance.
- // Returns: Object, address of the created object
- // p3: Tag[], default attributes for the instance to be created
-
- R3RM_CREATE = 0;
-
- function mR3RM_CREATE(p3) {
- return R3ToJS( Do(this.r3obj, 0, p3, R3TID_TAG, R3TNF_ARRAY));
- }
-
- // Description: Deletes an object (destructor). See R3ObjectDelete() shield.
-
- R3RM_DELETE = 1;
-
- function mR3RM_DELETE() {
- DoA(this.r3obj, 1, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set one or more class attributes. See R3SetClassAttrs()
- // p3: Tag[], tag list specifying attributes and values to be set.
-
- R3RM_SETCLATTR = 2;
-
- function mR3RM_SETCLATTR(p3) {
- Do(this.r3obj, 2, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Fetch class attributes
- // p3: Tag[], tags list specifying attributes to be fecthed
-
- R3RM_GETCLATTR = 3;
-
- function mR3RM_GETCLATTR(p3) {
- Do(this.r3obj, 3, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Set object attributes
- // p3: Tag[], tag list specifying attributes and values to be set
-
- R3RM_SET = 4;
-
- function mR3RM_SET(p3) {
- Do(this.r3obj, 4, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Fetch one or more object attributes
- // Returns: Tag[], NULL if all tags were recognized, otherwise address of the unrecognized tag.
- // p3: Tag[], tag list specifying attributes/storages.
-
- R3RM_GET = 5;
-
- function mR3RM_GET(p3) {
- return Do(this.r3obj, 5, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Tells object to read its attributes from a file. If the class of the
- // file is R3CLID_IFF, automatic crossplatform conversion is applied.
- // Returns: Boolean, FALSE if failed, R3RA_Error, can be used for fetching the error code
- // p3: Tag[], tag list specifying the file object and address for the error code:
-
- R3RM_READ = 6;
-
- function mR3RM_READ(p3) {
- return Do(this.r3obj, 6, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Tells an object to write its attributes to a file
- // Returns: Boolean, NULL if write failed
- // p3: Tag[], tag list (R3RA_FileObject, R3RA_Error).
-
- R3RM_WRITE = 7;
-
- function mR3RM_WRITE(p3) {
- return Do(this.r3obj, 7, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: This method is defined by the root class althought its up to the sub
- // classes to implement it. For more information, see model-view concept.
- // Virtual method
- // p1: Object, new value, the type of the value depends on the attribute in question
- // p3: Integer, model's attribute that has changed
-
- R3RM_UPDATE = 8;
-
- function mR3RM_UPDATE(p1, p3) {
- DoA2(this.r3obj, 8, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Increments objects reference count. By default, the reference count is zero.
-
- R3RM_REF = 9;
-
- function mR3RM_REF() {
- DoA(this.r3obj, 9, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Decrements objects reference count. When reference count drops to zero, the object is deleted.
-
- R3RM_UNREF = 10;
-
- function mR3RM_UNREF() {
- DoA(this.r3obj, 10, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Tells an object to link itself at the head of a list.
- // p3: r3List, list
-
- R3RM_ADDHEAD = 11;
-
- function mR3RM_ADDHEAD(p3) {
- DoA(this.r3obj, 11, p3, R3TID_LIST, 0);
- }
-
- // Description: Tells an object ot link itself to the end of a list
- // p3: r3List, list
-
- R3RM_ADDTAIL = 12;
-
- function mR3RM_ADDTAIL(p3) {
- DoA(this.r3obj, 12, p3, R3TID_LIST, 0);
- }
-
- // Description: Removes an object from a list
- // p3: r3List, list
-
- R3RM_REMOVE = 13;
-
- function mR3RM_REMOVE(p3) {
- DoA(this.r3obj, 13, p3, R3TID_LIST, 0);
- }
-
- // Description: This method is defined by the root class but implemented by the sub classes.
-
- R3RM_TRANSFORM = 18;
-
- function mR3RM_TRANSFORM() {
- DoA(this.r3obj, 18, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Makes a copy of an object
- // Returns: Object, an address of the duplicate
-
- R3RM_COPY = 19;
-
- function mR3RM_COPY() {
- return R3ToJS( DoA(this.r3obj, 19, 0, R3TID_INTEGER, 0));
- }
-
- // Description: Tells an object to read all its attributes from the given object. Note: only
- // those attributes are assigned which are common to the both objects.
- // p3: Object, address of the object from which the attributes should be read
-
- R3RM_ASSIGN = 20;
-
- function mR3RM_ASSIGN(p3) {
- DoA(this.r3obj, 20, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Reads on object from the given file. FIrst, root attributes (such as the class
- // id) are read. The root class then creates an instance of that class and sends
- // R3RM_READ method to the instance.
- // Returns: Object, address of the loaded object or NULL if failed
- // p3: Tag[], attributes for the object to be loaded.
-
- R3RCM_LOADOBJECT = 21;
-
- function mR3RCM_LOADOBJECT(p3) {
- return R3ToJS( Do(this.r3obj, 21, p3, R3TID_TAG, R3TNF_ARRAY));
- }
-
- // Description: Fetches a localized string corresponding the given string id.
- // p3: Integer, string identifier. See localization examples
-
- R3RCM_GETSTR = 25;
-
- function mR3RCM_GETSTR(p3) {
- DoA(this.r3obj, 25, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerates sub class of the given class (non-recursive)
- // p1: Object, object to be called as R3SendMsgA3((R3OBJ *)p1, (R3INT)p2, (R3CLASS *)super, (R3CLAS *)class, (void *)p3);
- // p2: Integer, method for the callback object
- // p3: Object, whatever user data for the callback object.
-
- R3RCM_ENUMSUBCLASSES = 26;
-
- function mR3RCM_ENUMSUBCLASSES(p1, p2, p3) {
- DoA3(this.r3obj, 26, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Sent to each class at close down. The class should free all objects allocated,
- // e.g. window cache.
-
- R3RCM_FREECACHE = 27;
-
- function mR3RCM_FREECACHE() {
- DoA(this.r3obj, 27, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Set an indexed object attribute
-
- R3RM_SETINDEXED = 28;
-
- function mR3RM_SETINDEXED() {
- DoA(this.r3obj, 28, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Get an indexed object attribute
-
- R3RM_GETINDEXED = 29;
-
- function mR3RM_GETINDEXED() {
- DoA(this.r3obj, 29, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Compares the given class id agains the class ids of the object.
- // Returns: Integer, 0 if the given class id doesn't match any of the classes of the
- // given object. Otherwise positive integer is returned indicating the 'level' at which the match was
- // found. Return value of 1 means that the given class is the 'true class' of
- // the object. The return value of 2 indicates that the given class id is the
- // super class of the object etc.
- // p3: Integer, class id to be checked
-
- R3RM_ISOFKIND = 30;
-
- function mR3RM_ISOFKIND(p3) {
- return DoA(this.r3obj, 30, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Asks if the given method or attribute is defined by the object.
- // Returns: Boolean, true if object recognizes the tag
- // p3: Integer, tag identifier
-
- R3RM_ISYOURTAG = 31;
-
- function mR3RM_ISYOURTAG(p3) {
- return DoA(this.r3obj, 31, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Insert the object to a given list after the given 'prev' node
- // Returns: Boolean, true if 'prev' node was found
- // p1: Boolean, don't send R3MM_CHANGED
- // p2: Object, previous object in the list
- // p3: r3List, list
-
- R3RM_INSERT = 32;
-
- function mR3RM_INSERT(p1, p2, p3) {
- return DoA3(this.r3obj, 32, p1, R3TID_BOOLEAN, 0, p2, R3TID_OBJECT, 0, p3, R3TID_LIST, 0);
- }
-
- // Description: Fetch tag descriptor (R3TAGNAME) data for the given tag id.
- // Returns: Boolean, true if tag was found.
- // p1: Integer, tag to be fetched
- // p2: r3List, tags fetched by calling R3RM_MAKETAGLIST. If null, maketaglist and freetaglits methods are called internally.
-
- R3RM_FINDTAGDESCR = 33;
-
- function mR3RM_FINDTAGDESCR(p1, p2) {
- return DoA3(this.r3obj, 33, p1, R3TID_INTEGER, 0, p2, R3TID_LIST, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Find tag descriptor by name
- // Returns: Boolean, true if found
- // p1: String, name of the attribute to be found
-
- R3RM_FINDTAGDESCRBYNAME = 34;
-
- function mR3RM_FINDTAGDESCRBYNAME(p1) {
- return DoA2(this.r3obj, 34, p1, R3TID_STRING, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Fetch public attribute by hierarhical name. These methods use FINDTAGDESCRBYNAME method.
- // Returns: Object, object whose attribute was referred
- // p1: String, hierarhcial name identifying the attribute
- // p3: Object, buffer for the value
-
- R3RM_SETPUBATTR = 36;
-
- function mR3RM_SETPUBATTR(p1, p3) {
- return R3ToJS( DoA2(this.r3obj, 36, p1, R3TID_STRING, 0, p3, R3TID_OBJECT, 0));
- }
-
- // Description: Find tag description for indexed tag.
- // Returns: Boolean, true if found
- // p1: Integer, tag
- // p2: Integer, index,
-
- R3RM_FINDINDEXEDTAGDESCR = 37;
-
- function mR3RM_FINDINDEXEDTAGDESCR(p1, p2) {
- return DoA3(this.r3obj, 37, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Find name for indexed tag.
- // Returns: Boolean, true if found
- // p1: Integer, tag
- // p2: Integer, index,
- // p3: String, buffer for tag name
-
- R3RM_NAMEFORINDEXEDTAG = 38;
-
- function mR3RM_NAMEFORINDEXEDTAG(p1, p2, p3) {
- return DoA3(this.r3obj, 38, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
- }
-
-
-
-
- R3RA_Hook = 511;
- function SetR3RA_Hook(value) {
- R3Set(this.r3obj, R3RA_Hook, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_Hook() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Hook, R3TID_OBJECT, 0));
- }
-
- R3RA_Error = 512;
- function SetR3RA_Error(value) {
- R3Set(this.r3obj, R3RA_Error, value, R3TID_INTEGER, 0);
- }
-
- function GetR3RA_Error() {
- return R3Get(this.r3obj, R3RA_Error, R3TID_INTEGER, 0);
- }
-
- R3RA_Name = 513;
- function SetR3RA_Name(value) {
- R3Set(this.r3obj, R3RA_Name, value, R3TID_STRING, 0);
- }
-
- function GetR3RA_Name() {
- return R3Get(this.r3obj, R3RA_Name, R3TID_STRING, 0);
- }
-
- R3RA_ClassID = 514;
- function SetR3RA_ClassID(value) {
- R3Set(this.r3obj, R3RA_ClassID, value, R3TID_INTEGER, 0);
- }
-
- function GetR3RA_ClassID() {
- return R3Get(this.r3obj, R3RA_ClassID, R3TID_INTEGER, 0);
- }
-
- R3RA_InstanceSize = 516;
- function GetR3RA_InstanceSize() {
- return R3Get(this.r3obj, R3RA_InstanceSize, R3TID_INTEGER, 0);
- }
-
- var R3RA_FileObject = 517; // Object
- R3RA_SysObject = 518;
- function SetR3RA_SysObject(value) {
- R3Set(this.r3obj, R3RA_SysObject, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_SysObject() {
- return R3ToJS(R3Get(this.r3obj, R3RA_SysObject, R3TID_OBJECT, 0));
- }
-
- var R3RA_TargetObject = 519; // Object
- var R3RA_BusyHook = 520; // Object
- R3RA_Next = 521;
- function SetR3RA_Next(value) {
- R3Set(this.r3obj, R3RA_Next, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_Next() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Next, R3TID_OBJECT, 0));
- }
-
- R3RA_Previous = 522;
- function SetR3RA_Previous(value) {
- R3Set(this.r3obj, R3RA_Previous, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_Previous() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Previous, R3TID_OBJECT, 0));
- }
-
- R3RA_HookData = 523;
- function SetR3RA_HookData(value) {
- R3Set(this.r3obj, R3RA_HookData, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_HookData() {
- return R3ToJS(R3Get(this.r3obj, R3RA_HookData, R3TID_OBJECT, 0));
- }
-
- R3RA_List = 524;
- function SetR3RA_List(value) {
- R3Set(this.r3obj, R3RA_List, value, R3TID_LIST, R3TNF_ARRAY);
- }
-
- var R3RA_SenderObject = 525; // Object
- var R3RA_TargetMethod = 526; // Object
- var R3RA_LoadCreateTags = 527; // Tag[]
- R3RA_Self = 528;
- function GetR3RA_Self() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Self, R3TID_OBJECT, 0));
- }
-
- R3RA_StaticName = 529;
- function SetR3RA_StaticName(value) {
- R3Set(this.r3obj, R3RA_StaticName, value, R3TID_STRING, 0);
- }
-
- function GetR3RA_StaticName() {
- return R3Get(this.r3obj, R3RA_StaticName, R3TID_STRING, 0);
- }
-
- R3RA_Version = 530;
- function GetR3RA_Version() {
- return R3Get(this.r3obj, R3RA_Version, R3TID_INTEGER, 0);
- }
-
- R3RA_RefCount = 532;
- function SetR3RA_RefCount(value) {
- R3Set(this.r3obj, R3RA_RefCount, value, R3TID_INTEGER, 0);
- }
-
- function GetR3RA_RefCount() {
- return R3Get(this.r3obj, R3RA_RefCount, R3TID_INTEGER, 0);
- }
-
- R3RA_Dispatcher = 543;
- function SetR3RA_Dispatcher(value) {
- R3Set(this.r3obj, R3RA_Dispatcher, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_Dispatcher() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Dispatcher, R3TID_OBJECT, 0));
- }
-
- var R3RA_TargetClass = 544; // Object
- R3RA_Icon = 545;
- function SetR3RA_Icon(value) {
- R3Set(this.r3obj, R3RA_Icon, value, R3TID_OBJECT, 0);
- }
-
- function GetR3RA_Icon() {
- return R3ToJS(R3Get(this.r3obj, R3RA_Icon, R3TID_OBJECT, 0));
- }
-
- var R3LEN_INSTANCENAME = 256;
- var R3TNF_USERDEFINED = 1;
- var R3TNF_ANIMATEABLE = 2;
- var R3TNF_COPYSTRING = 16;
- var R3TNF_INDEXED = 32;
- var R3TNF_ARRAY = 64;
- var R3TNF_LIST = 128;
- var R3TNF_READONLY = 256;
- var R3TNF_PERPOINT = 512;
- var R3TNF_HPT = 1024;
- var R3TNF_BYVALUE = 2048;
- var R3TN_USERDEFINED = 1;
- var R3TN_ANIMATEABLE = 2;
- var R3TN_COPYSTRING = 16;
- var R3RSTR_UNDEFINED_ATTRIBUTE = 0;
- var R3RSTR_CANNOT_READ_OBJECT = 1;
- var R3RSTR_NEED_NEWER_VERSION = 2;
- var R3RSTR_UNDEFINED_METHOD = 3;
- var R3RSTR_NAME = 4;
-
-
- function r3Root () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_ROOT, arguments);
- }
- // Methods
- this.CREATE=mR3RM_CREATE;
- this.DELETE=mR3RM_DELETE;
- this.SETCLATTR=mR3RM_SETCLATTR;
- this.GETCLATTR=mR3RM_GETCLATTR;
- this.SET=mR3RM_SET;
- this.GET=mR3RM_GET;
- this.READ=mR3RM_READ;
- this.WRITE=mR3RM_WRITE;
- this.UPDATE=mR3RM_UPDATE;
- this.REF=mR3RM_REF;
- this.UNREF=mR3RM_UNREF;
- this.ADDHEAD=mR3RM_ADDHEAD;
- this.ADDTAIL=mR3RM_ADDTAIL;
- this.REMOVE=mR3RM_REMOVE;
- this.TRANSFORM=mR3RM_TRANSFORM;
- this.COPY=mR3RM_COPY;
- this.ASSIGN=mR3RM_ASSIGN;
- this.LOADOBJECT=mR3RCM_LOADOBJECT;
- this.GETSTR=mR3RCM_GETSTR;
- this.ENUMSUBCLASSES=mR3RCM_ENUMSUBCLASSES;
- this.FREECACHE=mR3RCM_FREECACHE;
- this.SETINDEXED=mR3RM_SETINDEXED;
- this.GETINDEXED=mR3RM_GETINDEXED;
- this.ISOFKIND=mR3RM_ISOFKIND;
- this.ISYOURTAG=mR3RM_ISYOURTAG;
- this.INSERT=mR3RM_INSERT;
- this.FINDTAGDESCR=mR3RM_FINDTAGDESCR;
- this.FINDTAGDESCRBYNAME=mR3RM_FINDTAGDESCRBYNAME;
- this.SETPUBATTR=mR3RM_SETPUBATTR;
- this.FINDINDEXEDTAGDESCR=mR3RM_FINDINDEXEDTAGDESCR;
- this.NAMEFORINDEXEDTAG=mR3RM_NAMEFORINDEXEDTAG;
-
- // Attributes
- this.GetHook=GetR3RA_Hook;
- this.SetHook=SetR3RA_Hook;
- this.GetError=GetR3RA_Error;
- this.SetError=SetR3RA_Error;
- this.GetName=GetR3RA_Name;
- this.SetName=SetR3RA_Name;
- this.GetClassID=GetR3RA_ClassID;
- this.SetClassID=SetR3RA_ClassID;
- this.GetInstanceSize=GetR3RA_InstanceSize;
- this.GetSysObject=GetR3RA_SysObject;
- this.SetSysObject=SetR3RA_SysObject;
- this.GetNext=GetR3RA_Next;
- this.SetNext=SetR3RA_Next;
- this.GetPrevious=GetR3RA_Previous;
- this.SetPrevious=SetR3RA_Previous;
- this.GetHookData=GetR3RA_HookData;
- this.SetHookData=SetR3RA_HookData;
- this.SetList=SetR3RA_List;
- this.GetSelf=GetR3RA_Self;
- this.GetStaticName=GetR3RA_StaticName;
- this.SetStaticName=SetR3RA_StaticName;
- this.GetVersion=GetR3RA_Version;
- this.GetRefCount=GetR3RA_RefCount;
- this.SetRefCount=SetR3RA_RefCount;
- this.GetDispatcher=GetR3RA_Dispatcher;
- this.SetDispatcher=SetR3RA_Dispatcher;
- this.GetIcon=GetR3RA_Icon;
- this.SetIcon=SetR3RA_Icon;
- }
-
- r3Root.prototype=new r3God;
- // r3root.h_H